﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PropertyBagsSettings.aspx.cs" Inherits="EG.Portal.Admin.Layouts.EG.Portal.Admin.PropertyBagsSettings" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">

</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
        <script type="text/javascript">

            //Dialog opening 
            function OpenDialog(url) {
                var options = SP.UI.$create_DialogOptions();
                options.url = "/_admin/PropertyBag/" + url;
                options.width = 360;
                options.height = 260;
                options.dialogReturnValueCallback = Function.createDelegate(null, CloseCallback);
                SP.UI.ModalDialog.showModalDialog(options);
            }

            var messageId;

            // Dialog callback 
            function CloseCallback(result, target) {
                if (result === SP.UI.DialogResult.OK) {
                    //location.reload(true);
                }
                if (result === SP.UI.DialogResult.cancel) {
                    // do nothing
                }
            }

</script>

    <div class="ms-menutoolbar" style=" line-height:45px; vertical-align:middle;padding-left:10px; ">管理所有站点属性配置</div> 

    <hr style="height: 1px; width: 98%; color: Gray" />
    <div>
        <table>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    Farm场:
                </td>
                <td>
                    <asp:Label ID="lblFarm" runat="server" CssClass="ms-descriptiontext ms-inputformdescription"></asp:Label>
                </td>
                <td>
                    <asp:Button ID="btnFarm" runat="server" Text="查看属性集" OnClick="btnFarm_Click"
                        class="ms-ButtonHeightWidth"  />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    服务器:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlServer" AutoPostBack="false" runat="server">
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnServer" runat="server" Text="查看属性集" OnClick="btnServer_Click"
                        class="ms-ButtonHeightWidth"  Enabled="True" />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    Web应用程序:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlWebApplications" AutoPostBack="true" runat="server"
                        OnSelectedIndexChanged="ddlWebApplications_SelectedIndexChanged">
                        <asp:ListItem Text="No selection" Value="No selection"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnWebApplication" runat="server" Text="查看属性集" OnClick="btnWebApplication_Click"
                        class="ms-ButtonHeightWidth"  Enabled="False" />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    站点集:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlSiteCollection" AutoPostBack="true" runat="server"
                        OnSelectedIndexChanged="ddlSiteCollection_SelectedIndexChanged" Enabled="False">
                        <asp:ListItem Text="No selection" Value="No selection"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnSiteCollection" runat="server" Text="查看属性集" OnClick="btnSiteCollection_Click"
                        class="ms-ButtonHeightWidth"  Enabled="False" />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    站点:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlSite" AutoPostBack="true" runat="server"
                        OnSelectedIndexChanged="ddlSite_SelectedIndexChanged" Enabled="False">
                        <asp:ListItem Text="No selection" Value="No selection"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnSite" runat="server" Text="查看属性集" OnClick="btnSite_Click"
                        class="ms-ButtonHeightWidth"  Enabled="False" />
                </td>
            </tr>
            <tr>
                <td class="ms-descriptiontext ms-inputformdescription" style="width: 100px">
                    列表:
                </td>
                <td>
                    <asp:DropDownList class="ms-long" ID="ddlFolder" AutoPostBack="true" runat="server"
                        Enabled="False" OnSelectedIndexChanged="ddlFolder_SelectedIndexChanged">
                        <asp:ListItem Text="No selection" Value="No selection"></asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td>
                    <asp:Button ID="btnFolder" runat="server" Text="查看属性集" class="ms-ButtonHeightWidth"
                        Enabled="False" OnClick="btnFolder_Click" />
                </td>
            </tr>
        </table>
    </div>
    <hr style="height: 1px; width: 98%; color: Gray" />
    <asp:Label ID="Header" runat="server" Text=""></asp:Label>
    <asp:Label ID="PropertyTable" runat="server" Text=""></asp:Label>
</asp:Content>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
      属性管理
</asp:Content>

<asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server" >
        站点属性管理
</asp:Content>
